<?php 

class Edge {
	var $weight;
	var $node_id;
	
	public function __construct ($id, $w = 0.0){
		$this->node_id = $id;
		$this->weight = $w;
	}
	
	public function printing () {
		echo '[' . $this->weight . ',' . $this->node_id . ']';
	}	
}

?>